import { load } from 'js-yaml'
import fs from 'fs-extra'

export async function read(path) {
    if (await fs.pathExists(path)) {
        const content = await fs.readFile(path, { encoding: 'utf-8' })
        return load(content)
    }
}
